/*
 * Copyright (c) 2006, 2021, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

import java.util.Optional;

/**
 * <p>Project: javase - OptionalTest
 * <p>Powered by webrx On 2021-12-23 14:30:12
 * <p>Created by IntelliJ IDEA
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class OptionalTest {
    public static void main(String[] args) {
        var opt = Optional.empty();
        var op2 = Optional.of(new Student(1, "jack", 28, "男"));
        //var op3 = Optional.of(null);
        System.out.println(opt.isPresent());

        var op3 = Optional.of(Student.class);


        //System.out.println(op2.orElse(new Student()));
        //System.out.println(op2.isPresent());
        //System.out.println(op3.isPresent());
    }
}
